import os

def getWidgets() :
    
    widgetListIterator = os.walk("./widgets/")
    widgetList = widgetListIterator.next()[2]
    
    widgets = []
    
    for fileName in widgetList :
        
        if fileName[-3:] == '.py' :
            
            newName = fileName[:-3]
            widgets.append(newName)
    
    widgets.remove("__init__")
    return widgets

currentWidgets = getWidgets()
__all__ = currentWidgets[:]

for module in currentWidgets :
    exec('import ' + module)